package com.example.app.components.MyTab

import androidx.compose.foundation.interaction.MutableInteractionSource
import androidx.compose.material3.LocalContentColor
import androidx.compose.material3.Tab
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import androidx.compose.ui.graphics.Color

@Composable
fun MyTab(
        selected: Boolean,
        onClick: () -> Unit,
        modifier: Modifier = Modifier,
        enabled: Boolean = true,
        text: @Composable (() -> Unit)? = null,
        icon: @Composable (() -> Unit)? = null,
        selectedContentColor: Color = LocalContentColor.current,
        unselectedContentColor: Color = selectedContentColor,
        interactionSource: MutableInteractionSource? = null
) {
    Tab(
        selected,
        onClick,
        modifier,
        enabled,
        text,
        icon,
        selectedContentColor,
        unselectedContentColor,
        interactionSource,
    )
}